package String_process;

import java.util.Scanner;

/**
 * @author dx
 * @version 1.0
 * @date 2022/5/11 11:22
 * @description: 请实现一个函数，把字符串s中的每个空格替换成"%20"
 */
public class Replacespace {
    public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String s = sr.nextLine();
        String ans = replaceSpace(s);
        System.out.println(ans);
    }

    public static String replaceSpace(String s){
        int len = s.length();
        char [] res = new char[s.length()*3];
        int size = 0;
        for(int i= 0;i < len ;i++){
            char c = s.charAt(i);
            if(c == ' '){
                res[size++] = '2';
                res[size++] = '0';
                res[size++] = '%';
            }else {
                res[size++] = c;
            }
        }
        String ans = new String(res,0,size);
        return ans;

    }
}
